<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.9/peer.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery/3.3.1/jquery.slim.min.js"></script>
    <script src='./main.js'></script>
    <title>Peer Test</title>
    <style>
    .local-info {
        margin: 20px;
    }
    #dialogues-container {
        padding: 10px;
        border: 1px solid #888888;
    }
    .connections>.create-btn {

    }
    .dialogue {
        background-color: bisque;
        position: relative;
        border: 1px solid #aaaaaa;
        border-radius: 10px;
        padding: 10px;
    }
    .dialogue>.close-btn {
        position: absolute;
        top: 3px;
        right: 3px;
        cursor: pointer;
    }
    .dialogue>.recives {

    }
    .dialogue>.recives>.text {
        font-size: 18px;
        color: darkcyan;
    }
    .dialogue>.recives>.reviced-time {
        font-size: 12px;
        color: #aaaaaa;
    }
    button {  
        /* width: 200px;   */
        /* padding:3px;   */
        background-color: #428bca;  
        border-color: #357ebd;  
        color: #fff;  
        text-align: center;  
        vertical-align: middle;  
    }  
    </style>
</head>
<body>
    <div class="local-info">
        <div>PeerId: <span id="peer_id"></span></div>
        <div>Error: <span id="error"></span></div>
    </div>

    <div class="connections">
        <div id="dialogues-container"></div>
        <button id="create-btn">新建对话</button>
    </div>
</body>
</html>